<%--
  Created by IntelliJ IDEA.
  User: Chung Junbin
  Date: 2016-05-24 9:55
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>源请求</title>
</head>
<body>
<div>
    <fieldset>
        <legend>Get请求</legend>
        <form action="${pageContext.request.contextPath}/getRequest" method="get">
            <label>
                名称：<input type="text" name="name"/>
            </label><br/>
            <label>
                年龄：<input type="text" name="age"/>
            </label><br/>
            兴趣：<br/>
            <label>
                <input type="checkbox" name="interest" value="football"/>足球
            </label>
            <label>
                <input type="checkbox" name="interest" value="basketball"/>篮球
            </label>
            <label>
                <input type="checkbox" name="interest" value="pingpong"/>乒乓球
            </label><br/>
            <button type="submit">Get提交</button>
        </form>
    </fieldset>
</div>

<br/><br/><br/>

<div>
    <fieldset>
        <legend>Post请求</legend>
        <form action="${pageContext.request.contextPath}/postRequest" method="post">
            <label>
                名称：<input type="text" name="name"/>
            </label><br/>
            <label>
                年龄：<input type="text" name="age"/>
            </label><br/>
            兴趣：<br/>
            <label>
                <input type="checkbox" name="interest" value="football"/>足球
            </label>
            <label>
                <input type="checkbox" name="interest" value="basketball"/>篮球
            </label>
            <label>
                <input type="checkbox" name="interest" value="pingpong"/>乒乓球
            </label><br/>
            <button type="submit">Post提交</button>
        </form>
    </fieldset>
</div>

<br/><br/>

</body>
</html>
